package com.xydtech.ecard.custgroup.mapper;

import com.xydtech.ecard.custgroup.domain.EcardApiCustomerOrganizeTask;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 *  电子名片社团组织任务Mapper接口
 *
 * @author yuzhiguo
 * @date 2024-11-29 下午1:23
 */
public interface EcardApiCustomerOrganizeTaskMapper {

    /**
     * 新增电子名片社团组织任务
     * @param ecardCustomerOrganizeTask
     * @return
     */
    int insertEcardCustomerOrganizeTask(EcardApiCustomerOrganizeTask ecardCustomerOrganizeTask);

    /**
     * 根据社团组织id查询任务记录
     *
     * @param organizeId
     * @return
     */
    List<EcardApiCustomerOrganizeTask> getOrganizeTaskListByOrganizeId(@Param("organizeId") Long organizeId);

    /**
     * 修改任务记录状态
     * @param customerOrganizeTask
     */
    int updateOrganizeTaskSts(EcardApiCustomerOrganizeTask customerOrganizeTask);

    /**
     * 查询电子名片社团组织任务记录列表
     *
     * @param cmRegistId
     * @param search
     * @param deptId
     * @param phone
     * @return
     */
    List<EcardApiCustomerOrganizeTask> getOrganizeTaskList(@Param("cmRegistId") Long cmRegistId,
                                                           @Param("search") String search,
                                                           @Param("deptId") Long deptId,
                                                           @Param("phone") String phone,
                                                           @Param("organizeType") String organizeType);
}
